EBSILON®Professional Online Documentation
EbsScript / EbsScript Interface Units / InterfaceUnit MacroHelpers
In This Topic
    InterfaceUnit MacroHelpers
    In This Topic

    Interface Unit MacroHelpers

    The interface unit @MacroHelpers enables access to the objects ebsmacro and ebsmacrointerface by defining theses methods:

    function getDualMacro ( macrointerface:ebsMacroInterface ):ebsMacro;
    function getDualMacroInterface ( macro:ebsMacro ):ebsMacroInterface;
    function getContainerMacro ( object:ebsObject ):ebsMacro;

    Example:

    uses @macroHelpers;
    var em :ebsmacro;
    emi:ebsmacrointerface;
    begin
    em:= getDualMacro(VW1_mit_NK::MacroInterface.macroInterface );
    println (em);
      emi:= getDualMacroInterface(VW1_mit_NK::MacroInterface.macro );
    println (emi);
      em:= getContainerMacro( VW1_mit_NK::Vorwärmer_im_Makro );
    println (em);
    end.